<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('代付限额退款列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>流水号：</label>
                            <input type="text" name="sequenceNo"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="pay:refund:add">
                <i class="fa fa-plus"></i> 代付申请退款
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="pay:refund:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('pay:refund:edit')}]];
    var removeFlag = [[${@permission.hasPermi('pay:refund:remove')}]];
    var merchCdDatas = [[${@dict.getType('merch_cd')}]];
    var prefix = ctx + "pay/refund";

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "代付限额退款",
            columns: [{
                checkbox: true
            },
                {
                    field: 'sequenceNo',
                    title: '流水号',
                    visible: false
                },
                {
                    field: 'merchCd',
                    title: '商户号',
                    formatter: function (value, row, index) {
                        return $.table.selectDictLabel(merchCdDatas, value);
                    }
                },
                {
                    field: 'type',
                    title: '申请业务类型'
                },
                {
                    field: 'addInfo',
                    title: '附加信息'
                },
                {
                    field: 'status',
                    title: '状态'
                },
                {
                    field: 'msg',
                    title: '消息'
                },
                {
                    field: 'createTime',
                    title: '创建时间'
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>